<div class="studentgroups view">
<h2><?php  echo __('Studentgroup');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($studentgroup['Studentgroup']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Course'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentgroup['Course']['name'], array('controller' => 'courses', 'action' => 'view', $studentgroup['Course']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Learningform'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentgroup['Learningform']['name'], array('controller' => 'learningforms', 'action' => 'view', $studentgroup['Learningform']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Learningtype'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentgroup['Learningtype']['name'], array('controller' => 'learningtypes', 'action' => 'view', $studentgroup['Learningtype']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Studentgroupstype'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentgroup['Studentgroupstype']['name'], array('controller' => 'studentgroupstypes', 'action' => 'view', $studentgroup['Studentgroupstype']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Number'); ?></dt>
		<dd>
			<?php echo h($studentgroup['Studentgroup']['number']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($studentgroup['Studentgroup']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($studentgroup['Studentgroup']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($studentgroup['Studentgroup']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Studentgroup'), array('action' => 'edit', $studentgroup['Studentgroup']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Studentgroup'), array('action' => 'delete', $studentgroup['Studentgroup']['id']), null, __('Are you sure you want to delete # %s?', $studentgroup['Studentgroup']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentgroups'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentgroup'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Courses'), array('controller' => 'courses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Course'), array('controller' => 'courses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Learningforms'), array('controller' => 'learningforms', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Learningform'), array('controller' => 'learningforms', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Learningtypes'), array('controller' => 'learningtypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Learningtype'), array('controller' => 'learningtypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentgroupstypes'), array('controller' => 'studentgroupstypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentgroupstype'), array('controller' => 'studentgroupstypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Students'), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Student'), array('controller' => 'students', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Students');?></h3>
	<?php if (!empty($studentgroup['Student'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Learningtype Id'); ?></th>
		<th><?php echo __('Studentgroup Id'); ?></th>
		<th><?php echo __('Studentstate Id'); ?></th>
		<th><?php echo __('Fio'); ?></th>
		<th><?php echo __('Eng Fio'); ?></th>
		<th><?php echo __('Unic Number'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentgroup['Student'] as $student): ?>
		<tr>
			<td><?php echo $student['id'];?></td>
			<td><?php echo $student['learningtype_id'];?></td>
			<td><?php echo $student['studentgroup_id'];?></td>
			<td><?php echo $student['studentstate_id'];?></td>
			<td><?php echo $student['fio'];?></td>
			<td><?php echo $student['eng_fio'];?></td>
			<td><?php echo $student['unic_number'];?></td>
			<td><?php echo $student['info'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'students', 'action' => 'view', $student['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'students', 'action' => 'edit', $student['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'students', 'action' => 'delete', $student['id']), null, __('Are you sure you want to delete # %s?', $student['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Student'), array('controller' => 'students', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
